package com.tuling.elasticsearch.service;

import com.tuling.elasticsearch.entity.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface ProdcutCrudRepository extends Repository<Product, Long> {

//    List<Product> findAllByDescriptionContaining(String desc);
    //将mysql 中数据导入到es 中
//    int importAll();
    /**
     * 根据关键字搜索名称或者副标题复合查询
     */
//    void search(String keyword, Long brandId, Long productCategoryId, Integer pageNum, Integer pageSize, Integer sort);

}
